package com.pajk.user.dal.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * Created by peide.zhang on 2014/6/7.
 */
public interface AdminMapper {
    @Delete("delete from user where id=#{id}")
    public int deleteUser(long  id);

    @Delete("delete from account_channel where user_id=#{userId}")
    public int deleteAccountChannel(long  userId);

    @Delete("delete from credit_his where user_id=#{userId}")
    public int deleteCreditHis(long  userId);

    @Delete("delete from user_ext where user_id=#{userId}")
    public int deleteUserExt(long  userId);

    @Delete("delete from user_device_binding where user_id=#{userId}")
    public int deleteUserDeviceBinding(long  userId);

    @Delete("delete from user_relation where user_id=#{userId}")
    public int deleteUserRelation(long  userId);

    @Delete("delete from user_reverse_relation where user_id=#{followerId} and relation_user_id=#{followeeId}")
    public int deleteUserReverseRelation(@Param("followerId") long  followerId, @Param("followeeId")  long followeeId);

}
